import { USER_AUTH } from "@/store/mutation-types"

export function isDisable(code) {
  let allAuthList = JSON.parse(sessionStorage.getItem(USER_AUTH) || "[]");
  let authArr = allAuthList.map(e=>e.action)
  if(authArr.includes(code)) return false
  return true
}